/**
 * Copyright (C), 2015-2024, XXX有限公司
 * FileName: GreetingService
 * Author:   zr
 * Date:     2024/10/29 00:04
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.itheima.demo1.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

/**
 * 〈一句话功能简述〉<br> 
 * 〈〉
 *
 * @author zr
 * @create 2024/10/29
 * @since 1.0.0
 */
@Service
public class GreetingService {
    private static  final Logger logger= LoggerFactory.getLogger(GreetingService.class);
    @Value("${app.message}")
    private String message;

    public String getMessage() {
        logger.debug("Fetching greeting message from configuration");
        return message;
    }

}